package com.mybatis.moudles.test;

import org.testng.annotations.DataProvider;
import org.testng.annotations.Parameters;
import org.testng.annotations.Test;

public class testcase2 {

    @Test
    @Parameters({"firstname","lastname"})
    public void testA(String fn,String ln){
        System.out.println("hhahahhha22222h ");
        System.out.println(fn);
        System.out.println(ln);
        System.out.println(Thread.currentThread());
    }

    @DataProvider(name="data")
    public Object [][] DataProviders(){
        Object[][] obj =new Object[][]{{"A2","A1"},{"B2","B1"},{"C2","C1"}};
        return obj;
    }

    @Test(dataProvider = "data")
    public void testB(String data1,String data2){
        System.out.println(data1);
        System.out.println(data2);
        System.out.println(Thread.currentThread());
    }

}
